package cn.tangsihai.org.domain;

import cn.tangsihai.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data
public class Shop extends BasicDomain {
    private String name;
    private String tel;
    private Date registerTime = new Date();
    private Integer state = 0;
    private String address;
    private String logo;
    // 员工
    private Long admin_id;
    private Employee admin; // 对象接收数据

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }
    // 后端到前端时间展示
    @JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
    public Date getRegisterTime() {
        return registerTime;
    }
}
